package com.clive.vo;

public class DishResult {
	private Integer code;
	private String message;
	private Object date;
	
	public static DishResult ok(Object data){
		DishResult result = new DishResult(200,"成功",data);		
		return result;
	}
	public static DishResult error(Object data){
		DishResult result = new DishResult(500,"失败",data);		
		return result;
	}
	public DishResult(Integer code,String message,Object data) {
		this.code = code;
		this.message = message;
		this.date = data;
	}
	
	public Integer getCode() {
		return code;
	}
	public void setCode(Integer code) {
		this.code = code;
	}
	public String getMessage() {
		return message;
	}
	public void setMessage(String message) {
		this.message = message;
	}
	public Object getDate() {
		return date;
	}
	public void setDate(Object date) {
		this.date = date;
	}
	@Override
	public String toString() {
		return "DishesVo [code=" + code + ", message=" + message + ", date=" + date + "]";
	}
	
	
}
